package com.bwc.codevideo

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Button
import com.bwc.codevideo.speak.SpeakActivity

class MainActivity : AppCompatActivity() {
    private var bt_initVideo : Button ?= null
    private var btn_start_hear : Button ?= null
    private var btn_runnings : Button ?= null
    private var btn_terget : Button ?= null
    private var btn_speak : Button ?= null
    private var btn_training : Button ?= null
    private var btn_chatting : Button ?= null
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        bt_initVideo = findViewById(R.id.bt_initVideo)
        btn_start_hear = findViewById(R.id.btn_start_hear)
        btn_runnings = findViewById(R.id.btn_runnings)
        btn_terget = findViewById(R.id.btn_terget)
        btn_speak = findViewById(R.id.btn_speak)
        btn_training = findViewById(R.id.btn_training)
        btn_chatting = findViewById(R.id.btn_chatting)

        bt_initVideo?.setOnClickListener {
//            startActivity(Intent(this,HearActivity::class.java))
        }

        btn_start_hear?.setOnClickListener {
//            startActivity(Intent(this,HearActivity::class.java))
        }

        btn_runnings?.setOnClickListener {
            startActivity(Intent(this,RunningActivity::class.java))
        }

        btn_terget?.setOnClickListener {
            startActivity(Intent(this,TargetActivity::class.java))
        }
        btn_speak?.setOnClickListener {
            startActivity(Intent(this, SpeakActivity::class.java))
        }

        btn_training?.setOnClickListener {
            startActivity(Intent(this, TrainingActivity::class.java))
        }

        btn_chatting?.setOnClickListener {
            startActivity(Intent(this, ChattingActivity::class.java))
        }
    }
}